<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "/jeecms_sys/head.html"/>
<script type="text/javascript">
$(function() {
	$("#jvForm").validate();
});

function sendEMS() {
	if (confirm('确认发送')) {
		var userId = document.getElementsByName("userId")[0].value
		var reply = document.getElementsByName("reply")[0].value;
		var phone = document.getElementsByName("phone")[0].value;
		if (phone==null || phone=="") {
			alert("用户电话号码不存在,请输入后再发短信");
		}

		var data = "reply=" + reply + "&phone="+ phone;
		$.ajax({
			type : "POST",
			url : "/SendSMSServlet",
			data : data,
			success : function(msg) {
				alert(eval(msg));
			}
		});
	}
}
</script>
</head>
<body>
<div class="body-box">
<div class="rhead">
	<div class="rpos"><@s.m "global.position"/>:  <@s.m "cmsGuestbook.function"/> - <@s.m "global.edit"/></div>
	<form class="ropt">
		<input type="submit" value="<@s.m "global.backToList"/>" onclick="this.form.action='v_list.do';"/>
	</form>
	<div class="clear"></div>
</div>
<@p.form id="jvForm" action="o_update.do"labelWidth="18">
<@p.hidden name="ctgId" value=cmsGuestbook.ctg.id/>
<@p.hidden name="userId" value=userId/>
<#if ifDelay>
<tr bgcolor=#ffffff><td colspan="4"><img src="/r/cms/www/red/img/remissbig.jpg" alt=""/></td></tr>
</#if>
<@p.text colspan="1" readonly="false" label="cmsGuestbook.ctg" name="ctgId222" value=cmsGuestbook.ctg.name  required="true"/>
 <@p.text  colspan="1" label="受理编号" name="number" value=cmsGuestbook.number maxlength="50" width="20"/> 
<@p.tr/>
<@p.text colspan="2" readonly="false" label="cmsGuestbook.title" name="title" value=cmsGuestbook.title size="70" maxlength="255"/><@p.tr/>
<@p.textarea colspan="2" readonly="false" label="cmsGuestbook.content" name="content" value=cmsGuestbook.content rows="5" cols="70" maxlength="255"/><@p.tr/>
<@p.textarea colspan="2" label="cmsGuestbook.reply" name="reply" value=cmsGuestbook.reply rows="5" cols="70" maxlength="255"/><@p.tr/>
<@p.text colspan="1" readonly="false" width="50" label="cmsGuestbook.email" name="email" value=cmsGuestbook.email maxlength="100"/>
<@p.text colspan="1" readonly="false" width="50" label="cmsGuestbook.phone" name="phone" value=cmsGuestbook.phone maxlength="100"/><@p.tr/>
<@p.text colspan="2" readonly="false" label="cmsGuestbook.qq" name="qq" value=cmsGuestbook.qq maxlength="50"/><@p.tr/>
<@p.td colspan="2">
	<@p.hidden name="id" value=cmsGuestbook.id/>
	<@p.submit code="global.submit"/> &nbsp; <@p.reset code="global.reset"/> &nbsp; <input
			type="button" value="发送信息" onclick="sendEMS()" />
</@p.td>
</@p.form>
</div>
</body>
</html>